/**
 * @author weichaozhan
 * @description graphql 接口入口
 */

import {
    GraphQLObjectType,
    GraphQLSchema
} from 'graphql';

import mutations from './mutations';
import queries from './queries';

export default new GraphQLSchema(
    {
        query: new GraphQLObjectType({
            name: 'Query',
            fields: queries,
        }),
        mutation: new GraphQLObjectType({
            name: 'Mutation',
            fields: mutations,
        }),
    }
);